package com.shop.shard.controller.command.user;

import lombok.Data;
import org.hibernate.validator.constraints.Length;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;
/**
 * @Description: 代码生成器自动生成
 * @author:
 * @Createed Date: 2019-8-16 10:06:57
 * @ModificationHistory: Who  When  What
 * ---------     -------------   --------------------------------------
 **/
@Data
public class UserUpdateCommand implements Serializable{
    /** 主键*/
    @NotNull(message = "主键不能为空")
    @ApiModelProperty(value = "主键")
    private Long userId;
    /** 身份证号码*/
    @ApiModelProperty(value = "身份证号码")
    private String idNumber;
    /** 姓名*/
    @ApiModelProperty(value = "姓名")
    private String name;
    /** 年龄*/
    @NotNull(message = "年龄不能为空")
    @ApiModelProperty(value = "年龄")
    private Integer age;
    /** 性别：1-男；2-女*/
    @NotNull(message = "性别：1-男；2-女不能为空")
    @ApiModelProperty(value = "性别：1-男；2-女")
    private Integer gender;
    /** 出生日期*/
    @ApiModelProperty(value = "出生日期")
    private Date birthDate;
}